/**
 */
package com.zbest.zpay.integration.redis;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zbest.zpay.integration.aliyun.AliyunOCSClient;

/**
 * 
 *
 * @author czhou3306@gmail.com
 * @version $Id: AliyunNosqlClientImpl.java, v0.1 2016年2月19日 下午1:43:49 czhou3306@gmail.com Exp $
 */
@Service("redisClient")
public class AliyunNosqlClientImpl implements RedisClient {

    @Resource
    private AliyunOCSClient aliyunOCSClient;

    /** 
     * @see com.zbest.zpay.integration.redis.RedisClient#putData(java.lang.String, java.lang.Object)
     */
    @Override
    public void putData(String key, Object value) {
        aliyunOCSClient.putData(key, value);
    }

    /** 
     * @see com.zbest.zpay.integration.redis.RedisClient#putData(java.lang.String, java.lang.Object, long)
     */
    @Override
    public void putData(String key, Object value, long timeout) {
        aliyunOCSClient.putData(key, value, (int) timeout);
    }

    /** 
     * @see com.zbest.zpay.integration.redis.RedisClient#getData(java.lang.String)
     */
    @Override
    public Object getData(String key) {
        return aliyunOCSClient.getData(key);
    }

    /** 
     * @see com.zbest.zpay.integration.redis.RedisClient#remove(java.lang.String)
     */
    @Override
    public void remove(String key) {
        aliyunOCSClient.remove(key);
    }

    /** 
     * @see com.zbest.zpay.integration.redis.RedisClient#uniqueCheck(java.lang.String, int)
     */
    @Override
    public boolean uniqueCheck(String key, int seconds) {
        //FIXME 
        return true;
    }

}
